<template>
  <div>
    <button @click="handleClick">
      <slot></slot>
    </button>
  </div>
</template>

<script>
export default {
  name: 'LgButton',
  components: {

  },
  data () {
    return {

    };
  },
  methods: {
    handleClick (evt) {
      this.$emit('click', evt)
      //阻止表单提交
      evt.preventDefault()
    }
  },
};
</script>

<style scoped >
</style>
